package kun;

import java.awt.image.BufferedImage;

public class Hero extends FlyObject{

    int hp;

    public Hero() {
        img = App.getImg("/kun/img/f1.jpg");
        x = 160;
        y = 500;
        w = img.getWidth() / 2;
        h = img.getHeight() / 2;
        hp = 3;
    }

    public void moveToMouse(int mx, int my) {
        x = mx - w / 2;
        y = my - h / 2;
    }

    public void moveUp() {

            y -= 10;

    }

    public void moveDown() {

            y += 10;

    }

    public void moveLeft() {
        x -= 10;
    }

    public void moveRight() {
        x += 10;
    }
}
